export default {

  setManagerServiceList(state, list) {
    state.managerServiceList = list
  },

  // 设置登录者身份
  setLoginerRole(state, role) {
    state.loginerRole = role
  },

  // 设置已经安装的服务列表
  setInstalledServices(state, installedServices) {
    state.installedServices = installedServices
  },

  // 设置登录者身份和已安装服务
  setLoginerRoleAndInstalledServices(state, payload = {}) {
    const { loginerName, loginerRole, modifyPass, loginerUserId, installedServices } = payload
    state.loginerName = loginerName
    state.loginerRole = loginerRole
    state.loginerUserId = loginerUserId
    state.modifyPass = modifyPass
    state.installedServices = installedServices
  },

  // 设置 密码修改期限
  setModifyDay(state, day) {
    state.modifyDay = day
  },

  // 设置 admin是否修改密码
  setModifyPass(state, modified) {
    state.modifyPass = modified
  },

}
